package com.netease.pris.activity;

import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.text.Editable;
import android.text.Html;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import com.netease.framework.ActivityEx;
import com.netease.framework.k;
import com.netease.pris.a.p;
import com.netease.pris.activity.view.AttachmentImageView;
import com.netease.pris.c.l;
import com.netease.pris.v;
import java.util.ArrayList;
import java.util.HashSet;

public class PRISActivityForward extends ActivityEx
  implements TextWatcher, View.OnClickListener
{
  private static final int H = 1;
  private static final int I = 2;
  private static final int J = 1;
  private static final int K = 2;
  private static final String d = "PRISActivityForward";
  private static final int e = 119;
  private static final int f = 0;
  private static final int g = 1;
  private static final int h = 0;
  private static final int i = 1;
  private Button A;
  private int B;
  private AttachmentImageView C;
  private String D;
  private StringBuilder E;
  private String F;
  private com.netease.pris.atom.b G = com.netease.pris.atom.b.a;
  private ArrayList L = new ArrayList();
  private String M = null;
  private String N = null;
  private int O = -1;
  private int P = -1;
  private HashSet Q = new HashSet();
  Handler a = new ct(this);
  com.netease.b.b.e.d b = new cw(this);
  com.netease.pris.b c = new cx(this);
  private boolean j = false;
  private ListView k;
  private EditText l;
  private CheckBox m;
  private Cursor n;
  private TextView o;
  private ay p;
  private TextView q;
  private TextView r;
  private String s;
  private String t;
  private String u;
  private String v;
  private String w;
  private String x;
  private String y;
  private int z;

  private void a(int paramInt)
  {
    if (this.a != null)
      this.a.sendEmptyMessage(paramInt);
  }

  public static void a(Context paramContext, String paramString1, String paramString2, String paramString3)
  {
    Intent localIntent = new Intent(paramContext, PRISActivityForward.class);
    localIntent.setAction("action_icon_forward");
    localIntent.putExtra("extra_icon_title", paramString1);
    localIntent.putExtra("extra_icon_url", paramString2);
    localIntent.putExtra("extra_from", paramString3);
    paramContext.startActivity(localIntent);
  }

  public static void a(Context paramContext, String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, com.netease.pris.atom.b paramb)
  {
    Intent localIntent = new Intent(paramContext, PRISActivityForward.class);
    localIntent.setAction("action_comment_forward");
    localIntent.putExtra("extra_article_title", paramString1);
    localIntent.putExtra("extra_article_uid", paramString2);
    localIntent.putExtra("extra_comment_url", paramString3);
    localIntent.putExtra("extra_sharing_url", paramString4);
    localIntent.putExtra("extra_article_url", paramString5);
    localIntent.putExtra("extra_icon_url", paramString6);
    localIntent.putExtra("extra_from", paramString7);
    localIntent.putExtra("subscribe_source_type", paramb.name());
    paramContext.startActivity(localIntent);
  }

  private String b(int paramInt)
  {
    int i1 = 0;
    switch (paramInt)
    {
    default:
    case 1:
    case 3:
    case 2:
    case 6:
    case 5:
    case 4:
    case 7:
    }
    while (true)
    {
      return getString(i1);
      i1 = 2131362077;
      continue;
      i1 = 2131362078;
      continue;
      i1 = 2131362079;
      continue;
      i1 = 2131362080;
      continue;
      i1 = 2131362081;
      continue;
      i1 = 2131362082;
      continue;
      i1 = 2131362083;
    }
  }

  private boolean e()
  {
    if ((this.j) && (this.n != null) && (this.n.requery()) && (this.n.getCount() == 0))
    {
      if (this.n != null)
      {
        this.n.close();
        this.n = null;
      }
      finish();
    }
    for (int i1 = 1; ; i1 = 0)
      return i1;
  }

  private void f()
  {
    this.C = ((AttachmentImageView)findViewById(2131558534));
    this.q = ((TextView)findViewById(2131558409));
    this.q.setBackgroundDrawable(k.a(this).b(2130837812));
    int i1 = getResources().getDimensionPixelSize(2131296261);
    ((LinearLayout)findViewById(2131558405)).setPadding(0, 0, i1, 0);
    this.q.setVisibility(0);
    this.q.setTextSize(14.0F);
    this.q.setTextColor(Color.rgb(255, 255, 255));
    this.q.setText(2131362134);
    setTitle(2131362134);
    g(8);
    this.r = ((TextView)findViewById(2131558535));
    this.m = ((CheckBox)findViewById(2131558536));
    if ((this.B == 1) || (this.u == null))
    {
      this.m.setChecked(false);
      this.m.setVisibility(8);
    }
    if ((this.B == 1) && (this.y != null))
    {
      this.D = com.netease.image.d.a().a(this.y);
      Bitmap localBitmap = null;
      int i2 = com.netease.image.c.a(this, 56.0F);
      int i3 = com.netease.image.c.a(this, 56.0F);
      if (this.D != null)
        localBitmap = p.a(this.D, i2, i3);
      if (localBitmap != null)
      {
        this.C.setImageBitmap(localBitmap);
        this.C.setVisibility(0);
      }
    }
    if ((this.B == 0) && (this.y != null))
    {
      this.E = new StringBuilder();
      if (!TextUtils.isEmpty(this.y))
        com.netease.image.d.a().a(this.E, 0, this.y, new cu(this), 4, 0);
    }
    this.k = ((ListView)findViewById(2131558537));
    this.k.setDividerHeight(1);
    this.l = ((EditText)findViewById(2131558533));
    this.l.addTextChangedListener(this);
    this.l.setText(this.w);
    this.l.setSelected(true);
    this.l.setSelection(0);
    this.q.setOnClickListener(this);
    this.n = l.a(this);
    startManagingCursor(this.n);
    this.o = ((TextView)findViewById(2131558538));
    this.o.setOnClickListener(this);
    this.p = new ay(this, this, this.n);
    this.k.setAdapter(this.p);
    if ((this.n != null) && (this.n.getCount() == 0))
      showDialog(2);
  }

  private void g()
  {
    finish();
  }

  private void h()
  {
    if (this.j)
      this.j = false;
    PRISActivityWBSetting.a(this);
    this.j = true;
  }

  private String i(int paramInt)
  {
    String str;
    switch (paramInt)
    {
    case 10001:
    case 10004:
    case 10005:
    default:
      str = null;
    case 10006:
    case 10007:
    case 10008:
    case 10002:
    case 10003:
    case 10009:
    }
    while (true)
    {
      return str;
      str = getString(2131362149);
      continue;
      str = getString(2131362150);
      continue;
      str = getString(2131362151);
      continue;
      str = getString(2131362152);
      continue;
      str = getString(2131362151);
    }
  }

  private void r()
  {
    boolean bool1 = false;
    this.M = this.l.getText().toString().trim();
    int i1;
    boolean bool2;
    label47: Cursor localCursor;
    if (this.C.getVisibility() == 0)
    {
      i1 = 1;
      if ((i1 == 0) || (!this.C.a()))
        break label176;
      bool2 = true;
      String str1 = p();
      String str2 = this.F;
      if (!this.M.equals(this.w.trim()))
        bool1 = true;
      com.netease.pris.d.c.a(str1, str2, bool1, bool2);
      if ((this.B == 0) && (this.m.isChecked()) && (!TextUtils.isEmpty(this.u)))
        v.a().a(this.u, this.t, this.M);
      localCursor = l.a(this);
      if (localCursor == null);
    }
    while (true)
    {
      try
      {
        boolean bool3 = localCursor.moveToFirst();
        if (!bool3)
        {
          return;
          i1 = 0;
          break;
          label176: bool2 = false;
          break label47;
        }
        if (this.Q.contains(Long.valueOf(localCursor.getLong(0))))
          continue;
        this.L.add(Long.valueOf(localCursor.getLong(0)));
        boolean bool4 = localCursor.moveToNext();
        if (bool4)
          continue;
        if (localCursor == null)
          continue;
        localCursor.close();
        showDialog(1);
        if (this.B != 0)
          break label330;
        if (this.G == com.netease.pris.atom.b.a)
        {
          this.O = v.a().g(this.t);
          continue;
        }
      }
      finally
      {
        if (localCursor == null)
          continue;
        localCursor.close();
      }
      if (!TextUtils.isEmpty(this.v))
      {
        this.O = v.a().h(this.v);
        continue;
        if ((this.B == 1) && (!TextUtils.isEmpty(this.y)))
        {
          this.O = v.a().h(this.y);
          continue;
        }
      }
      label330: a(1);
    }
  }

  protected void a()
  {
    dismissDialog(1);
    finish();
  }

  public void afterTextChanged(Editable paramEditable)
  {
    int i1 = paramEditable.length();
    int i2;
    if (10 < 119 - i1)
    {
      this.z = 0;
      int i4 = k.a(this).c(2131230986);
      Object[] arrayOfObject4 = new Object[1];
      arrayOfObject4[0] = Integer.valueOf(i4);
      String str2 = String.format("#%06x", arrayOfObject4);
      Object[] arrayOfObject5 = new Object[2];
      arrayOfObject5[0] = str2;
      arrayOfObject5[1] = Integer.valueOf(119 - i1);
      String str3 = getString(2131362136, arrayOfObject5);
      this.r.setText(Html.fromHtml(str3));
      if ((this.n == null) || (this.Q == null))
        break label396;
      if (this.n.getCount() > this.Q.size())
        break label360;
      i2 = 1;
    }
    while (true)
    {
      label140: if ((this.z == 1) || (TextUtils.isEmpty(this.l.getEditableText().toString().trim())) || (i2 != 0))
      {
        this.q.setEnabled(false);
        this.q.setTextColor(Color.rgb(153, 153, 153));
      }
      while (true)
      {
        return;
        if ((119 - i1 >= 0) && (119 - i1 <= 10))
        {
          this.z = 0;
          int i3 = k.a(this).c(2131230988);
          Object[] arrayOfObject2 = new Object[1];
          arrayOfObject2[0] = Integer.valueOf(i3);
          String str1 = String.format("#%06x", arrayOfObject2);
          TextView localTextView2 = this.r;
          Object[] arrayOfObject3 = new Object[2];
          arrayOfObject3[0] = str1;
          arrayOfObject3[1] = Integer.valueOf(119 - i1);
          localTextView2.setText(Html.fromHtml(getString(2131362137, arrayOfObject3)));
          break;
        }
        if (119 - i1 >= 0)
          break;
        this.z = 1;
        TextView localTextView1 = this.r;
        Object[] arrayOfObject1 = new Object[1];
        arrayOfObject1[0] = Integer.valueOf(i1 - 119);
        localTextView1.setText(Html.fromHtml(getString(2131362138, arrayOfObject1)));
        break;
        label360: i2 = 0;
        break label140;
        this.q.setEnabled(true);
        this.q.setTextColor(Color.rgb(255, 255, 255));
      }
      label396: i2 = 1;
    }
  }

  // ERROR //
  protected void b()
  {
    // Byte code:
    //   0: iconst_0
    //   1: istore_1
    //   2: aconst_null
    //   3: astore_2
    //   4: aload_0
    //   5: getfield 306	com/netease/pris/activity/PRISActivityForward:B	I
    //   8: iconst_1
    //   9: if_icmpne +18 -> 27
    //   12: aload_0
    //   13: getfield 204	com/netease/pris/activity/PRISActivityForward:C	Lcom/netease/pris/activity/view/AttachmentImageView;
    //   16: invokevirtual 439	com/netease/pris/activity/view/AttachmentImageView:a	()Z
    //   19: ifeq +8 -> 27
    //   22: aload_0
    //   23: getfield 128	com/netease/pris/activity/PRISActivityForward:D	Ljava/lang/String;
    //   26: astore_2
    //   27: aload_0
    //   28: getfield 306	com/netease/pris/activity/PRISActivityForward:B	I
    //   31: ifne +672 -> 703
    //   34: aload_0
    //   35: getfield 204	com/netease/pris/activity/PRISActivityForward:C	Lcom/netease/pris/activity/view/AttachmentImageView;
    //   38: invokevirtual 437	com/netease/pris/activity/view/AttachmentImageView:getVisibility	()I
    //   41: ifne +5 -> 46
    //   44: iconst_1
    //   45: istore_1
    //   46: iload_1
    //   47: ifeq +656 -> 703
    //   50: aload_0
    //   51: getfield 204	com/netease/pris/activity/PRISActivityForward:C	Lcom/netease/pris/activity/view/AttachmentImageView;
    //   54: invokevirtual 439	com/netease/pris/activity/view/AttachmentImageView:a	()Z
    //   57: ifeq +646 -> 703
    //   60: aload_0
    //   61: getfield 128	com/netease/pris/activity/PRISActivityForward:D	Ljava/lang/String;
    //   64: ifnonnull +17 -> 81
    //   67: aload_0
    //   68: invokestatic 318	com/netease/image/d:a	()Lcom/netease/image/d;
    //   71: aload_0
    //   72: getfield 198	com/netease/pris/activity/PRISActivityForward:y	Ljava/lang/String;
    //   75: invokevirtual 321	com/netease/image/d:a	(Ljava/lang/String;)Ljava/lang/String;
    //   78: putfield 128	com/netease/pris/activity/PRISActivityForward:D	Ljava/lang/String;
    //   81: aload_0
    //   82: getfield 128	com/netease/pris/activity/PRISActivityForward:D	Ljava/lang/String;
    //   85: astore_3
    //   86: aload_0
    //   87: getfield 98	com/netease/pris/activity/PRISActivityForward:L	Ljava/util/ArrayList;
    //   90: astore 4
    //   92: aload 4
    //   94: monitorenter
    //   95: aload_0
    //   96: getfield 98	com/netease/pris/activity/PRISActivityForward:L	Ljava/util/ArrayList;
    //   99: invokevirtual 544	java/util/ArrayList:size	()I
    //   102: ifle +586 -> 688
    //   105: aload_0
    //   106: getfield 98	com/netease/pris/activity/PRISActivityForward:L	Ljava/util/ArrayList;
    //   109: bipush 255
    //   111: aload_0
    //   112: getfield 98	com/netease/pris/activity/PRISActivityForward:L	Ljava/util/ArrayList;
    //   115: invokevirtual 544	java/util/ArrayList:size	()I
    //   118: iadd
    //   119: invokevirtual 548	java/util/ArrayList:remove	(I)Ljava/lang/Object;
    //   122: checkcast 474	java/lang/Long
    //   125: invokevirtual 552	java/lang/Long:longValue	()J
    //   128: lstore 6
    //   130: aload_0
    //   131: invokevirtual 556	com/netease/pris/activity/PRISActivityForward:getContentResolver	()Landroid/content/ContentResolver;
    //   134: getstatic 561	com/netease/pris/provider/af:k	Landroid/net/Uri;
    //   137: lload 6
    //   139: invokestatic 567	android/content/ContentUris:withAppendedId	(Landroid/net/Uri;J)Landroid/net/Uri;
    //   142: getstatic 570	com/netease/pris/c/l:a	[Ljava/lang/String;
    //   145: aconst_null
    //   146: aconst_null
    //   147: aconst_null
    //   148: invokevirtual 576	android/content/ContentResolver:query	(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    //   151: astore 8
    //   153: aload 8
    //   155: ifnull +13 -> 168
    //   158: aload 8
    //   160: invokeinterface 468 1 0
    //   165: ifne +24 -> 189
    //   168: aload_0
    //   169: iconst_1
    //   170: invokespecial 201	com/netease/pris/activity/PRISActivityForward:a	(I)V
    //   173: aload 8
    //   175: ifnull +10 -> 185
    //   178: aload 8
    //   180: invokeinterface 224 1 0
    //   185: aload 4
    //   187: monitorexit
    //   188: return
    //   189: aload_0
    //   190: getfield 102	com/netease/pris/activity/PRISActivityForward:N	Ljava/lang/String;
    //   193: invokestatic 346	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   196: ifne +224 -> 420
    //   199: new 339	java/lang/StringBuilder
    //   202: dup
    //   203: invokespecial 340	java/lang/StringBuilder:<init>	()V
    //   206: aload_0
    //   207: getfield 100	com/netease/pris/activity/PRISActivityForward:M	Ljava/lang/String;
    //   210: invokevirtual 580	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   213: ldc_w 582
    //   216: invokevirtual 580	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   219: aload_0
    //   220: getfield 102	com/netease/pris/activity/PRISActivityForward:N	Ljava/lang/String;
    //   223: invokevirtual 580	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   226: invokevirtual 583	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   229: astore 9
    //   231: aload_0
    //   232: aload 8
    //   234: iconst_4
    //   235: invokeinterface 586 2 0
    //   240: putfield 106	com/netease/pris/activity/PRISActivityForward:P	I
    //   243: aload_0
    //   244: getfield 306	com/netease/pris/activity/PRISActivityForward:B	I
    //   247: ifne +35 -> 282
    //   250: aload_0
    //   251: getfield 588	com/netease/pris/activity/PRISActivityForward:x	Ljava/lang/String;
    //   254: invokestatic 346	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   257: ifne +25 -> 282
    //   260: invokestatic 460	com/netease/pris/v:a	()Lcom/netease/pris/v;
    //   263: aload_0
    //   264: getfield 588	com/netease/pris/activity/PRISActivityForward:x	Ljava/lang/String;
    //   267: aload_0
    //   268: getfield 462	com/netease/pris/activity/PRISActivityForward:t	Ljava/lang/String;
    //   271: ldc_w 590
    //   274: aload_0
    //   275: getfield 106	com/netease/pris/activity/PRISActivityForward:P	I
    //   278: invokevirtual 593	com/netease/pris/v:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)I
    //   281: pop
    //   282: aload_0
    //   283: getfield 106	com/netease/pris/activity/PRISActivityForward:P	I
    //   286: iconst_5
    //   287: if_icmpne +151 -> 438
    //   290: aload_0
    //   291: getfield 595	com/netease/pris/activity/PRISActivityForward:s	Ljava/lang/String;
    //   294: invokestatic 346	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   297: ifeq +132 -> 429
    //   300: aload_0
    //   301: ldc_w 596
    //   304: invokevirtual 188	com/netease/pris/activity/PRISActivityForward:getString	(I)Ljava/lang/String;
    //   307: astore 25
    //   309: aload 25
    //   311: invokevirtual 597	java/lang/String:length	()I
    //   314: bipush 30
    //   316: if_icmple +380 -> 696
    //   319: aload 25
    //   321: iconst_0
    //   322: bipush 30
    //   324: invokevirtual 601	java/lang/String:substring	(II)Ljava/lang/String;
    //   327: astore 26
    //   329: aload_0
    //   330: getfield 492	com/netease/pris/activity/PRISActivityForward:v	Ljava/lang/String;
    //   333: astore 27
    //   335: aload 27
    //   337: invokestatic 346	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   340: ifeq +9 -> 349
    //   343: aload_0
    //   344: getfield 198	com/netease/pris/activity/PRISActivityForward:y	Ljava/lang/String;
    //   347: astore 27
    //   349: ldc_w 603
    //   352: new 339	java/lang/StringBuilder
    //   355: dup
    //   356: invokespecial 340	java/lang/StringBuilder:<init>	()V
    //   359: ldc_w 605
    //   362: invokevirtual 580	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   365: aload 26
    //   367: invokevirtual 580	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   370: ldc_w 607
    //   373: invokevirtual 580	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   376: aload 27
    //   378: invokevirtual 580	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   381: invokevirtual 583	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   384: invokestatic 612	com/netease/g/b:c	(Ljava/lang/String;Ljava/lang/String;)V
    //   387: invokestatic 617	com/netease/b/b/a/b:a	()Lcom/netease/b/b/a/b;
    //   390: aload 8
    //   392: iconst_2
    //   393: invokeinterface 618 2 0
    //   398: aload 9
    //   400: aconst_null
    //   401: aload_0
    //   402: getfield 111	com/netease/pris/activity/PRISActivityForward:b	Lcom/netease/b/b/e/d;
    //   405: invokevirtual 621	com/netease/b/b/a/b:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/netease/b/b/e/d;)I
    //   408: pop
    //   409: goto -236 -> 173
    //   412: astore 5
    //   414: aload 4
    //   416: monitorexit
    //   417: aload 5
    //   419: athrow
    //   420: aload_0
    //   421: getfield 100	com/netease/pris/activity/PRISActivityForward:M	Ljava/lang/String;
    //   424: astore 9
    //   426: goto -195 -> 231
    //   429: aload_0
    //   430: getfield 595	com/netease/pris/activity/PRISActivityForward:s	Ljava/lang/String;
    //   433: astore 25
    //   435: goto -126 -> 309
    //   438: aload_0
    //   439: getfield 106	com/netease/pris/activity/PRISActivityForward:P	I
    //   442: iconst_1
    //   443: if_icmpne +43 -> 486
    //   446: invokestatic 626	com/netease/b/b/f/a:a	()Lcom/netease/b/b/f/a;
    //   449: astore 21
    //   451: aload 8
    //   453: iconst_2
    //   454: invokeinterface 618 2 0
    //   459: astore 22
    //   461: aload_0
    //   462: getfield 111	com/netease/pris/activity/PRISActivityForward:b	Lcom/netease/b/b/e/d;
    //   465: astore 23
    //   467: aload 21
    //   469: aload 22
    //   471: aload 9
    //   473: aload_3
    //   474: aconst_null
    //   475: aconst_null
    //   476: aconst_null
    //   477: aload 23
    //   479: invokevirtual 629	com/netease/b/b/f/a:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/netease/b/b/e/d;)I
    //   482: pop
    //   483: goto -310 -> 173
    //   486: aload_0
    //   487: getfield 106	com/netease/pris/activity/PRISActivityForward:P	I
    //   490: iconst_3
    //   491: if_icmpne +42 -> 533
    //   494: invokestatic 634	com/netease/b/b/g/c:a	()Lcom/netease/b/b/g/c;
    //   497: astore 17
    //   499: aload 8
    //   501: iconst_2
    //   502: invokeinterface 618 2 0
    //   507: astore 18
    //   509: aload_0
    //   510: getfield 111	com/netease/pris/activity/PRISActivityForward:b	Lcom/netease/b/b/e/d;
    //   513: astore 19
    //   515: aload 17
    //   517: aload 18
    //   519: aload 9
    //   521: aload_3
    //   522: aconst_null
    //   523: aconst_null
    //   524: aload 19
    //   526: invokevirtual 637	com/netease/b/b/g/c:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/netease/b/b/e/d;)I
    //   529: pop
    //   530: goto -357 -> 173
    //   533: aload_0
    //   534: getfield 106	com/netease/pris/activity/PRISActivityForward:P	I
    //   537: iconst_4
    //   538: if_icmpne +28 -> 566
    //   541: invokestatic 642	com/netease/b/b/b/a:a	()Lcom/netease/b/b/b/a;
    //   544: aload 8
    //   546: iconst_2
    //   547: invokeinterface 618 2 0
    //   552: aload 9
    //   554: aload_3
    //   555: aload_0
    //   556: getfield 111	com/netease/pris/activity/PRISActivityForward:b	Lcom/netease/b/b/e/d;
    //   559: invokevirtual 643	com/netease/b/b/b/a:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/netease/b/b/e/d;)I
    //   562: pop
    //   563: goto -390 -> 173
    //   566: aload_0
    //   567: getfield 106	com/netease/pris/activity/PRISActivityForward:P	I
    //   570: iconst_2
    //   571: if_icmpne +42 -> 613
    //   574: invokestatic 648	com/netease/b/b/d/c:a	()Lcom/netease/b/b/d/c;
    //   577: astore 12
    //   579: aload 8
    //   581: iconst_2
    //   582: invokeinterface 618 2 0
    //   587: astore 13
    //   589: aload_0
    //   590: getfield 111	com/netease/pris/activity/PRISActivityForward:b	Lcom/netease/b/b/e/d;
    //   593: astore 14
    //   595: aload 12
    //   597: aload 13
    //   599: aload 9
    //   601: aload_3
    //   602: aconst_null
    //   603: aconst_null
    //   604: aload 14
    //   606: invokevirtual 649	com/netease/b/b/d/c:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/netease/b/b/e/d;)I
    //   609: pop
    //   610: goto -437 -> 173
    //   613: aload_0
    //   614: getfield 106	com/netease/pris/activity/PRISActivityForward:P	I
    //   617: bipush 6
    //   619: if_icmpne +28 -> 647
    //   622: invokestatic 654	com/netease/b/b/c/a:a	()Lcom/netease/b/b/c/a;
    //   625: aload 8
    //   627: iconst_2
    //   628: invokeinterface 618 2 0
    //   633: aload 9
    //   635: aload_3
    //   636: aload_0
    //   637: getfield 111	com/netease/pris/activity/PRISActivityForward:b	Lcom/netease/b/b/e/d;
    //   640: invokevirtual 655	com/netease/b/b/c/a:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/netease/b/b/e/d;)I
    //   643: pop
    //   644: goto -471 -> 173
    //   647: aload_0
    //   648: getfield 106	com/netease/pris/activity/PRISActivityForward:P	I
    //   651: bipush 7
    //   653: if_icmpne -480 -> 173
    //   656: invokestatic 660	com/netease/b/b/h/d:a	()Lcom/netease/b/b/h/d;
    //   659: aload 8
    //   661: iconst_2
    //   662: invokeinterface 618 2 0
    //   667: aload 9
    //   669: aconst_null
    //   670: aconst_null
    //   671: aconst_null
    //   672: aconst_null
    //   673: aconst_null
    //   674: aconst_null
    //   675: aload_3
    //   676: aconst_null
    //   677: aload_0
    //   678: getfield 111	com/netease/pris/activity/PRISActivityForward:b	Lcom/netease/b/b/e/d;
    //   681: invokevirtual 663	com/netease/b/b/h/d:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/netease/b/b/e/d;)I
    //   684: pop
    //   685: goto -512 -> 173
    //   688: aload_0
    //   689: iconst_2
    //   690: invokespecial 201	com/netease/pris/activity/PRISActivityForward:a	(I)V
    //   693: goto -508 -> 185
    //   696: aload 25
    //   698: astore 26
    //   700: goto -371 -> 329
    //   703: aload_2
    //   704: astore_3
    //   705: goto -619 -> 86
    //
    // Exception table:
    //   from	to	target	type
    //   95	417	412	finally
    //   420	693	412	finally
  }

  public void beforeTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3)
  {
  }

  protected void c()
  {
    if (this.n.getCount() > 0)
      if (this.n.getCount() > this.Q.size())
        if ((this.z == 1) || (TextUtils.isEmpty(this.l.getEditableText().toString().trim())))
        {
          this.q.setEnabled(false);
          this.q.setTextColor(Color.rgb(153, 153, 153));
        }
    while (true)
    {
      return;
      this.q.setEnabled(true);
      this.q.setTextColor(Color.rgb(255, 255, 255));
      continue;
      this.q.setEnabled(false);
      this.q.setTextColor(Color.rgb(153, 153, 153));
      continue;
      this.q.setEnabled(false);
      this.q.setTextColor(Color.rgb(153, 153, 153));
    }
  }

  public void onClick(View paramView)
  {
    switch (paramView.getId())
    {
    default:
    case 2131558409:
    case 2131558538:
    }
    while (true)
    {
      return;
      r();
      continue;
      h();
      com.netease.pris.d.c.a(p(), 722);
    }
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903082);
    String str1 = getIntent().getAction();
    if (TextUtils.isEmpty(str1))
      finish();
    while (true)
    {
      return;
      if (str1.equals("action_comment_forward"))
      {
        this.B = 0;
        Intent localIntent = getIntent();
        this.s = localIntent.getStringExtra("extra_article_title");
        this.t = localIntent.getStringExtra("extra_article_uid");
        this.u = localIntent.getStringExtra("extra_comment_url");
        this.v = localIntent.getStringExtra("extra_article_url");
        this.x = localIntent.getStringExtra("extra_sharing_url");
        Object[] arrayOfObject2 = new Object[1];
        if (this.s == null);
        for (String str3 = ""; ; str3 = this.s)
        {
          arrayOfObject2[0] = str3;
          this.w = getString(2131362135, arrayOfObject2);
          this.y = localIntent.getStringExtra("extra_icon_url");
          this.F = localIntent.getStringExtra("extra_from");
          this.G = com.netease.pris.atom.b.valueOf(localIntent.getStringExtra("subscribe_source_type"));
          this.z = 0;
          f();
          v.a().a(this.c);
          break;
        }
      }
      if (str1.equals("action_icon_forward"))
      {
        this.B = 1;
        this.s = getIntent().getStringExtra("extra_icon_title");
        this.y = getIntent().getStringExtra("extra_icon_url");
        Object[] arrayOfObject1 = new Object[1];
        if (this.s == null);
        for (String str2 = ""; ; str2 = this.s)
        {
          arrayOfObject1[0] = str2;
          this.w = getString(2131362135, arrayOfObject1);
          this.F = getIntent().getStringExtra("extra_from");
          break;
        }
      }
      finish();
    }
  }

  protected Dialog onCreateDialog(int paramInt)
  {
    Object localObject;
    switch (paramInt)
    {
    default:
      localObject = super.onCreateDialog(paramInt);
    case 1:
    case 2:
    }
    while (true)
    {
      return localObject;
      localObject = new ProgressDialog(this);
      ((ProgressDialog)localObject).setMessage(getString(2131362140));
      continue;
      localObject = new AlertDialog.Builder(this).setIcon(2130837643).setTitle(2131362046).setMessage(2131362047).setPositiveButton(2131362048, new cv(this)).create();
      ((Dialog)localObject).setOnDismissListener(new cs(this));
    }
  }

  protected void onDestroy()
  {
    if (this.E != null)
      this.E.setLength(0);
    v.a().b(this.c);
    if (this.n != null)
    {
      this.n.close();
      this.n = null;
    }
    if (this.L != null)
    {
      this.L.clear();
      this.L = null;
    }
    if (this.a != null)
    {
      this.a.removeMessages(1);
      this.a.removeMessages(2);
      this.a = null;
    }
    super.onDestroy();
  }

  protected void onResume()
  {
    super.onResume();
    if (e());
    while (true)
    {
      return;
      if (this.l.length() > 0)
        this.l.setSelection(0, 0);
      c();
    }
  }

  public void onTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3)
  {
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.PRISActivityForward
 * JD-Core Version:    0.6.0
 */